<?xml version="1.0"?>
<recipe> 
	<instantiate from="root/src/app_package/Activity.java.ftl"
		to="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />
	
	<#if generateLayout>
	<instantiate from="root/res/layout/layout.xml.ftl"
		to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />
	</#if>

	<#if generateBasePager >
		<instantiate from="root/src/app_package/PagerAdapter.java.ftl"
			to="${escapeXmlAttribute(srcOut)}/adapter/BaseFragmentPagerAdapter.java" />

		<instantiate from="root/src/app_package/BaseActivity.java.ftl"
			to="${escapeXmlAttribute(srcOut)}/activity/BasePagerActivity.java" />

		<instantiate from="root/res/layout/layout_base.xml.ftl"
			to="${escapeXmlAttribute(resOut)}/layout/activity_base_pager.xml" />
			
		<merge from="root/res/values/colors.xml.ftl"
			to="${escapeXmlAttribute(resOut)}/values/colors.xml" />
	</#if>
	
	<merge from="root/build.gradle.ftl"
		 to="${escapeXmlAttribute(projectOut)}/build.gradle" />
    <merge from="root/manifest.xml.ftl"
             to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" />
	<#if activityLabel != "">
		<merge from="root/res/values/strings.xml.ftl"
				 to="${escapeXmlAttribute(resOut)}/values/strings.xml" />
	</#if>
  <open file="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />
</recipe>
